package server

import (
	"fmt"
	"net/http"

	"github.com/julienschmidt/httprouter"
)

type demonHandler struct{}

func (h demonHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
	data := map[string]string{
		"print": "DMC",
	}
	fmt.Println("demon request handled")
	sendJSON(&w, data)
}

func demoHandler(w http.ResponseWriter, r *http.Request) {
	data := map[string]string{
		"hello": "world",
	}
	fmt.Println("demo request handled")
	sendJSON(&w, data)
}

func routerDemo(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
	data := map[string]string{
		"http": "router",
	}
	fmt.Println("router request handled")
	sendJSON(&w, data)
}
